package com.zhuoli.service.springboot.mybatis.pagehelper.service;

import com.github.pagehelper.PageInfo;
import com.zhuoli.service.springboot.mybatis.pagehelper.repository.model.User;

import java.util.List;

/**
 * @Author: zhuoli
 * @Date: 2018/8/2 11:12
 * @Description:
 */
public interface UserControllerService {
    List<User> getAllUsers();

    PageInfo<User> getByCondition(String userName, String description, Integer pageNum, Integer pageSize);

    List<User> getTest(String userName, String description);

    List<User> BetweenTest(String nameBegin, String nameEnd);

    User getUserById(Long id);

    int delUserById(Long id);

    int createUser(User user);

    int updateUser(User user);
}
